class LinkController {
   def defaultAction = "navHome"
   static  reg_links  = [links:[registerOrganization:"rowingmanager.domain.Organization",registerRower:"rowingmanager.domain.Rower"],controllers:['link','rower']]
   static  home_links = [links:[news:"News",myTrainings:"My training diary",tests:"Published test results"],controllers:['blalba','baba','testlk']]
         /* VERJETNO tiste controllers mape ne bom rabu ker bojo vsi linki sli preko link controllerja, tu jih bom naprej chainal*/
  def navEvents = {

  }

  def navHome = {
   return [secondary_links:home_links]
  }

  def navWerow = {

  }
  /*  SECONDARY NAVIGATION */
  def registerOrganization = {
    log.info("clicked on organization")
    chain(controller:'organization',action:'registerOrganization',model:[secondary_links:reg_links])
 }

  def registerRower = {
    log.info("clicked on rowingmanager.domain.Rower")
     return reg_links
  }

  def news = {
   log.info("clicked news")
   return home_links
  }

  def myTrainings = {
   log.info("clicked trainings")
   return home_links
  }
}
